import Mock from "mockjs";
import homeApi from './mockData/home'
import userApi from './mockData/user'
import loginApi from './mockData/login'
// 1.拦截的路径 2.方法 3 数据

// Mock.mock(/\/api\/home\/getTableData$/,'get',homeApi.getTableData)
Mock.mock(/\/api\/home\/getTableData$/,'get',homeApi.getTableData)
Mock.mock(/\/api\/home\/getCountData$/,'get',homeApi.getCountData)
Mock.mock(/\/api\/home\/getChartData$/,'get',homeApi.getChartData)
Mock.mock(/\/api\/user\/getTableData/,'get',userApi.getUserData)
Mock.mock(/\/api\/user\/delete/,'delete',userApi.deleteUser)
Mock.mock(/\/api\/user\/save/,"post", userApi.addUser)
Mock.mock(/\/api\/user\/save/,"put", userApi.addUser)
Mock.mock(/\/api\/login\/getMenu/,'post',loginApi.getMenu)

